package com.atguigu.tingshu.live.service;

import com.atguigu.tingshu.model.live.LiveRoom;
import com.atguigu.tingshu.vo.live.LiveRoomVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface LiveRoomService extends IService<LiveRoom> {
    /**
     * 获取正在直播的直播间
     * @param userId
     * @return
     */
    LiveRoom getCurrentLive(Long userId);

    /**
     * 保存直播间
     * @param liveRoomVo
     * @param userId
     * @return
     */
    LiveRoom saveLiveRoom(LiveRoomVo liveRoomVo, Long userId);

    /**
     * 查询直播间列表
     * @return
     */
    List<LiveRoom> findLiveList();


}
